struct WAVEFORMATEXTENSIBLE {
public TODO;
}
<StructLayout(LayoutKind.Sequential, pack:=1)> Public Structure WAVEFORMATEXTENSIBLE
Dim Format As WAVEFORMATEX
'union {
'WORD wValidBitsPerSample;
'WORD wSamplesPerBlock;
'WORD wReserved;
';} Samples;
Dim wUnionSamples As UInt16
Dim dwChannelMask As UInteger
Dim SubFormat As Guid
End Structure
None.
VB - wUnionSamples replaces the union of 3 values commented out above it as a union is not possible in VB - just put the value into wUnionSamples for whichever of the wValidBitsPerSample/wSamplesPerBlock/wReserved required based on the SubFormat.